<?
    class Functions {
        static function PrintHeader($title) {
            ?>
                <html>
                    <head>
                        <title>GIF Animation Studio &raquo; <?=$title?></title>
                        <link rel='stylesheet' type='text/css' href='jscss/cgl.css' />
                        <link rel='stylesheet' type='text/css' href='jscss/style.css' />
                        <script type='text/javascript' language='javascript' src='jscss/prototype.js'></script>
                        <script type='text/javascript' language='javascript' src='jscss/animator.js'></script>
                        
                        <script type='text/javascript' language='javascript' src='jscss/scriptaculous/scriptaculous.js'></script>
                        <script type='text/javascript' language='javascript' src='jscss/scriptaculous/effects.js'></script>
                        <script type='text/javascript' language='javascript' src='jscss/scriptaculous/dragdrop.js'></script>
                    </head>
                    <body>
                    <div id='everything' align='center' width="100%">
                        <div class='header'>GIF Animation Studio</div>
                        <div class='menu'>
                            <a href='index.php'>Main Page</a> | 
                            <a href='addframes.php?project=<?=$_GET['project']?>'>Add Frames</a> |
                            <a href='project.php?action=new'>New Project</a> |
                            <a href='project.php?action=open'>Open Project</a> |
                            <a href='project.php?action=save&project=<?=$_GET['project']?>'>Save Project</a> |
                            <a href='export.php?project=<?=$_GET['project']?>'>Export project as GIF</a>
                        </div>
                        <div class='content'>
            <?
        }
        static function PrintFooter() {
            ?>  <br><br>
                </div>
                <div class='footer'>
                    Copyright &copy; 2008 <br>
                    Joe Chrzanowski
                </div>
            </div>
            <?
        }
    }
    
?>